package com.bdqn.oa.dao;

import com.bdqn.oa.entity.Setting;

import java.sql.SQLException;

/**
 * @author Chenrz
 * @date 2022/7/20 20:28
 */
public interface SettingDao {
    /**
     * 新增系统设置
     * @param setting
     * @return
     * @throws SQLException
     */
    public int saveSetting(Setting setting) throws SQLException;

    /**
     * 删除系统设置
     * @param id
     * @return
     * @throws SQLException
     */
    public int deleteSetting(Integer id) throws SQLException;

    /**
     * 修改系统设置
     * @param setting
     * @return
     * @throws SQLException
     */
    public int updateSetting(Setting setting) throws SQLException;

    /**
     * 查询系统设置
     * @return
     * @throws SQLException
     */
    public Setting getSetting() throws SQLException;
}
